package main
import (
    "fmt"
    "math"
    "github.com/shopspring/decimal"
)


func main(){
    fmt.Println(math.Pow(3,2))
    fmt.Println(7%3)
    fmt.Println(7/3)
    fmt.Println(math.Ceil(3/3))
    fmt.Println((math.Ceil(7/3)))
    fmt.Println(math.Trunc(95.85000000000001*1e3 + 0.5)*1e-3)  // 这种方式保留小数的精度有问题
    v, _ := decimal.NewFromFloat(95.85000000000001).Round(2).Float64()
    v2, _ := decimal.NewFromFloat(96).Round(2).Float64()
    v4, _ := decimal.NewFromFloat(93.97).Round(0).Float64() 
    fmt.Println(v, v2, v4)
    var s float64 = 1609695232
    fmt.Println(s)
    s1 := float64(-20)
    s2 := float64(-8.75)
    fmt.Println(s1 < s2)
}


